home *** CD-ROM | disk | FTP | other *** search
- // Borland C++ Builder
- // Copyright (c) 1995, 1998 by Borland International
- // All rights reserved
-
- // (DO NOT EDIT: machine generated header) 'Frmexprt.pas' rev: 3.00
-
- #ifndef FrmexprtHPP
- #define FrmexprtHPP
- #include <Exptintf.hpp>
- #include <ToolIntf.hpp>
- #include <DBCombo.hpp>
- #include <FileCtrl.hpp>
- #include <DBTables.hpp>
- #include <Db.hpp>
- #include <Dialogs.hpp>
- #include <Buttons.hpp>
- #include <ExtCtrls.hpp>
- #include <Controls.hpp>
- #include <Forms.hpp>
- #include <Graphics.hpp>
- #include <Classes.hpp>
- #include <StdCtrls.hpp>
- #include <Windows.hpp>
- #include <SysUtils.hpp>
- #include <SysInit.hpp>
- #include <System.hpp>
-
- //-- user supplied -----------------------------------------------------------
-
- namespace Frmexprt
- {
- //-- type declarations -------------------------------------------------------
- class DELPHICLASS FormExcept;
- class PASCALIMPLEMENTATION FormExcept : public Sysutils::Exception
- {
- typedef Sysutils::Exception inherited;
-
- public:
- /* Exception.Create */ __fastcall FormExcept(const System::AnsiString Msg) : Sysutils::Exception(Msg
- ) { }
- /* Exception.CreateFmt */ __fastcall FormExcept(const System::AnsiString Msg, const System::TVarRec
- * Args, const int Args_Size) : Sysutils::Exception(Msg, Args, Args_Size) { }
- /* Exception.CreateRes */ __fastcall FormExcept(int Ident, Extended Dummy) : Sysutils::Exception(Ident
- , Dummy) { }
- /* Exception.CreateResFmt */ __fastcall FormExcept(int Ident, const System::TVarRec * Args, const int
- Args_Size) : Sysutils::Exception(Ident, Args, Args_Size) { }
- /* Exception.CreateHelp */ __fastcall FormExcept(const System::AnsiString Msg, int AHelpContext) :
- Sysutils::Exception(Msg, AHelpContext) { }
- /* Exception.CreateFmtHelp */ __fastcall FormExcept(const System::AnsiString Msg, const System::TVarRec
- * Args, const int Args_Size, int AHelpContext) : Sysutils::Exception(Msg, Args, Args_Size, AHelpContext
- ) { }
- /* Exception.CreateResHelp */ __fastcall FormExcept(int Ident, int AHelpContext) : Sysutils::Exception(
- Ident, AHelpContext) { }
- /* Exception.CreateResFmtHelp */ __fastcall FormExcept(int Ident, const System::TVarRec * Args, const
- int Args_Size, int AHelpContext) : Sysutils::Exception(Ident, Args, Args_Size, AHelpContext) { }
-
- public:
- /* TObject.Destroy */ __fastcall virtual ~FormExcept(void) { }
-
- };
-
- enum TLayouts { ctHorz, ctVert, ctGrid };
-
- enum TSources { stLocal, stAlias };
-
- enum TLabelPos { lLeft, lTop };
-
- struct TExpertChoice;
- typedef TExpertChoice *PExpertChoice;
-
- struct TExpertChoice
- {
- TLayouts Layout;
- TSources Source;
- TLabelPos Labels;
- Classes::TStringList* QueryText;
- System::AnsiString TableName;
- Classes::TStringList* FieldList;
- int DriveIndex;
- System::AnsiString Path;
- System::AnsiString AliasName;
- int TypeIndex;
- } ;
-
- struct TFieldInfo;
- typedef TFieldInfo *PFieldInfo;
-
- struct TFieldInfo
- {
- TFieldType DataType;
- Word Size;
- System::TMetaClass*FieldClass;
- System::TMetaClass*ControlClass;
- } ;
-
- class DELPHICLASS TFormExpert;
- class PASCALIMPLEMENTATION TFormExpert : public Forms::TForm
- {
- typedef Forms::TForm inherited;
-
- __published:
- Extctrls::TNotebook* Notebook1;
- Stdctrls::TGroupBox* GroupBox2;
- Stdctrls::TRadioButton* CreateSingle;
- Stdctrls::TRadioButton* CreateMulti;
- Stdctrls::TLabel* Label1;
- Stdctrls::TLabel* LayoutLine1;
- Stdctrls::TRadioButton* HorzButton;
- Stdctrls::TRadioButton* VertButton;
- Stdctrls::TRadioButton* GridButton;
- Stdctrls::TLabel* Label8;
- Stdctrls::TLabel* Label9;
- Stdctrls::TLabel* Label10;
- Stdctrls::TLabel* Label11;
- Stdctrls::TLabel* Label12;
- Stdctrls::TLabel* Label13;
- Stdctrls::TLabel* Label6;
- Filectrl::TFilterComboBox* FilterList;
- Stdctrls::TLabel* Label25;
- Stdctrls::TLabel* Label26;
- Stdctrls::TLabel* Label27;
- Stdctrls::TLabel* DirPath;
- Stdctrls::TEdit* FileEdit;
- Stdctrls::TLabel* PathText;
- Dbcombo::TAliasDrive* AliasDriveList;
- Dbcombo::TAliasListBox* AliasPathList;
- Dbcombo::TAliasFileListBox* AliasFileList;
- Stdctrls::TLabel* Label22;
- Stdctrls::TLabel* Label24;
- Stdctrls::TLabel* TableLine;
- Stdctrls::TLabel* Label5;
- Stdctrls::TRadioButton* LeftButton;
- Stdctrls::TRadioButton* TopButton;
- Stdctrls::TLabel* Label28;
- Stdctrls::TLabel* Label29;
- Stdctrls::TListBox* DetailList;
- Stdctrls::TListBox* MasterList;
- Stdctrls::TLabel* Label30;
- Stdctrls::TLabel* Label31;
- Stdctrls::TButton* AddButton;
- Stdctrls::TLabel* Label32;
- Stdctrls::TLabel* Label33;
- Stdctrls::TButton* DeleteButton;
- Stdctrls::TButton* ClearButton;
- Stdctrls::TListBox* BindList;
- Stdctrls::TLabel* Label4;
- Extctrls::TImage* Image1;
- Stdctrls::TListBox* ChosenList;
- Buttons::TBitBtn* UpButton;
- Buttons::TBitBtn* DownButton;
- Stdctrls::TListBox* AvailableList;
- Stdctrls::TGroupBox* GroupBox1;
- Stdctrls::TRadioButton* CreateTable;
- Stdctrls::TRadioButton* CreateQuery;
- Stdctrls::TLabel* IndexLabel;
- Extctrls::TBevel* Bevel1;
- Stdctrls::TComboBox* IndexList;
- Stdctrls::TLabel* Label17;
- Stdctrls::TLabel* Label18;
- Dbtables::TTable* Table1;
- Buttons::TBitBtn* BitBtn3;
- Buttons::TBitBtn* BitBtn4;
- Buttons::TBitBtn* BitBtn5;
- Buttons::TBitBtn* BitBtn6;
- Stdctrls::TCheckBox* GenMainForm;
- Dbtables::TTable* Table2;
- Stdctrls::TButton* CancelButton;
- Stdctrls::TButton* HelpButton;
- Stdctrls::TButton* PrevButton;
- Stdctrls::TButton* NextButton;
- Stdctrls::TButton* CreateButton;
- Stdctrls::TGroupBox* FormChoices;
- Stdctrls::TRadioButton* FormAndModule;
- Stdctrls::TRadioButton* Form;
- void __fastcall FormCreate(System::TObject* Sender);
- void __fastcall NextButtonClick(System::TObject* Sender);
- void __fastcall PrevButtonClick(System::TObject* Sender);
- void __fastcall CreateOptionClick(System::TObject* Sender);
- void __fastcall DataSourceListClick(System::TObject* Sender);
- void __fastcall FormDestroy(System::TObject* Sender);
- void __fastcall LayoutButtonClick(System::TObject* Sender);
- void __fastcall AliasDriveListChange(System::TObject* Sender);
- void __fastcall AliasPathListChange(System::TObject* Sender);
- void __fastcall FilterListChange(System::TObject* Sender);
- void __fastcall AliasFileListClick(System::TObject* Sender);
- void __fastcall Button2Click(System::TObject* Sender);
- void __fastcall Button1Click(System::TObject* Sender);
- void __fastcall Button3Click(System::TObject* Sender);
- void __fastcall Button4Click(System::TObject* Sender);
- void __fastcall FileEditChange(System::TObject* Sender);
- void __fastcall ListDragOver(System::TObject* Sender, System::TObject* Source, int X, int Y, Controls::TDragState
- State, bool &Accept);
- void __fastcall ListDragDrop(System::TObject* Sender, System::TObject* Source, int X, int Y);
- void __fastcall UpButtonClick(System::TObject* Sender);
- void __fastcall DownButtonClick(System::TObject* Sender);
- void __fastcall PosButtonClick(System::TObject* Sender);
- void __fastcall BindingListClick(System::TObject* Sender);
- void __fastcall AddButtonClick(System::TObject* Sender);
- void __fastcall ClearButtonClick(System::TObject* Sender);
- void __fastcall ListDblClick(System::TObject* Sender);
- void __fastcall DeleteButtonClick(System::TObject* Sender);
- void __fastcall BindListClick(System::TObject* Sender);
- void __fastcall AliasFileListDblClick(System::TObject* Sender);
- void __fastcall FormPaint(System::TObject* Sender);
- void __fastcall FileEditKeyPress(System::TObject* Sender, char &Key);
- void __fastcall CreateTableClick(System::TObject* Sender);
- void __fastcall CreateQueryClick(System::TObject* Sender);
- void __fastcall IndexListChange(System::TObject* Sender);
- void __fastcall FormClick(System::TObject* Sender);
- void __fastcall FormAndModuleClick(System::TObject* Sender);
- void __fastcall HelpButtonClick(System::TObject* Sender);
- void __fastcall FormCloseQuery(System::TObject* Sender, bool &CanClose);
-
- private:
- Classes::TStringList* FAliasList;
- int FCurPage;
- bool FSimpleQuery;
- bool FProcessedMaster;
- TExpertChoice FChoice1;
- TExpertChoice FChoice2;
- TExpertChoice *FCurChoice;
- int FInitialDriveIndex;
- System::AnsiString FInitialDir;
- int FChosenItem;
- Controls::TImageList* FImageList;
- bool FDataModule;
- bool FClearDetails;
- Classes::TStringList* FOrderedDetailList;
- Classes::TStringList* FOrderedMasterList;
- Classes::TStringList* FMasterDescList;
- Classes::TStringList* FDetailDescList;
- bool FCreateTable;
- bool SyncChoices;
- bool ForceUpdate;
- System::AnsiString FFullIndexName;
- void __fastcall AddToBindList(const System::AnsiString Str1, const System::AnsiString Str2);
- void __fastcall ChangePages(int Value);
- void __fastcall CheckBind(void);
- System::TMetaClass* __fastcall CreateField(Classes::TComponent* AOwner, Db::TDataSet* DataSet, System::TMetaClass*
- FieldClass, const System::AnsiString DatabaseName, const System::AnsiString TableName, const System::AnsiString
- FieldName);
- bool __fastcall DoDragOver(Stdctrls::TListBox* List, const tagPOINT &Point, int &Index, Controls::TDragState
- State, bool DropOnSelected);
- void __fastcall FillFieldList(Classes::TStrings* List, PExpertChoice Choice, bool StoreDesc);
- System::AnsiString __fastcall AliasPath(const System::AnsiString AliasName);
- void __fastcall FreeChoice(TExpertChoice &Choice);
- void __fastcall GenSelect(const System::AnsiString TableName, Classes::TStrings* Fields, Classes::TStrings*
- SQLText, const System::AnsiString AliasName, const System::AnsiString Delimiter, bool QuoteTableName
- , const System::AnsiString Owner);
- void __fastcall GenBindVar(const System::AnsiString TableName, Classes::TStrings* List, Classes::TStrings*
- Query, const System::AnsiString Delimiter);
- int __fastcall GetFirstSelection(Stdctrls::TCustomListBox* List);
- void __fastcall SetFileEditText(const System::AnsiString Value);
- void __fastcall Init(void);
- void __fastcall InitChoice(TExpertChoice &Choice);
- void __fastcall InitFilter(void);
- void __fastcall InitQuery(Classes::TComponent* AOwner, Dbtables::TQuery* Query, const TExpertChoice
- &Choice, bool Bind);
- void __fastcall InitTable(Classes::TComponent* AOwner, Dbtables::TTable* Table, const TExpertChoice
- &Choice, bool Bind);
- void __fastcall MoveDragList(Stdctrls::TListBox* List1, Stdctrls::TListBox* List2, const tagPOINT &
- Point, int Index);
- void __fastcall MoveItems(Stdctrls::TListBox* List, const tagPOINT &Point, int Index);
- void __fastcall OrderFieldList(Classes::TStrings* OrderedList, Classes::TStrings* List);
- void __fastcall ProcessPage0(void);
- void __fastcall ProcessPage1(void);
- void __fastcall ProcessPage2(void);
- void __fastcall ProcessPage3(void);
- void __fastcall ProcessPage4(void);
- void __fastcall ProcessPage5(void);
- void __fastcall RemoveMatch(Classes::TStrings* List1, Classes::TStrings* List2);
- void __fastcall MoveSelected(Stdctrls::TCustomListBox* List, Classes::TStrings* Items);
- void __fastcall InsertSelected(Stdctrls::TCustomListBox* List, Classes::TStrings* Items, int Index)
- ;
- void __fastcall SetButtons(void);
- void __fastcall SetFilter(const System::AnsiString AFilter);
- void __fastcall SetItem(Stdctrls::TListBox* List, int Index);
- void __fastcall SetLayOut(void);
- __property Classes::TStringList* AliasList = {read=FAliasList};
- __property int CurPage = {read=FCurPage, write=FCurPage, nodefault};
- __property bool SimpleQuery = {read=FSimpleQuery, write=FSimpleQuery, nodefault};
- __property bool ProcessedMaster = {read=FProcessedMaster, write=FProcessedMaster, nodefault};
- __property TExpertChoice Choice1 = {read=FChoice1, write=FChoice1};
- __property TExpertChoice Choice2 = {read=FChoice2, write=FChoice2};
- __property int ChosenItem = {read=FChosenItem, write=FChosenItem, nodefault};
- __property Controls::TImageList* ImageList = {read=FImageList};
- __property Classes::TStringList* OrderedDetailList = {read=FOrderedDetailList};
- __property Classes::TStringList* OrderedMasterList = {read=FOrderedMasterList};
-
- public:
- __fastcall virtual TFormExpert(Classes::TComponent* AOwner);
- bool __fastcall CreateForm(void);
- public:
- /* TCustomForm.CreateNew */ __fastcall TFormExpert(Classes::TComponent* AOwner, int Dummy) : Forms::
- TForm(AOwner, Dummy) { }
- /* TCustomForm.Destroy */ __fastcall virtual ~TFormExpert(void) { }
-
- public:
- /* TWinControl.CreateParented */ __fastcall TFormExpert(HWND ParentWindow) : Forms::TForm(ParentWindow
- ) { }
-
- };
-
- //-- var, const, procedure ---------------------------------------------------
-
- } /* namespace Frmexprt */
- #if !defined(NO_IMPLICIT_NAMESPACE_USE)
- using namespace Frmexprt;
- #endif
- //-- end unit ----------------------------------------------------------------
- #endif // Frmexprt
-